package com.hsgene.order.dto.peanut;

import com.hsgene.common.util.validation.FieldChecker;

import java.io.Serializable;

/**
 * 基因检测单关联数据
 *
 * @author wangbing
 * @version 1.0, 2018/9/30
 */
public class TestingOrderRequestDataRelationDto implements Serializable {

    private static final long serialVersionUID = -1486545033431795268L;
    /**
     * relation Id
     */
    private String id;

    /**
     * 检测申请单类型(0手写，1电子)
     */
    private String testingApplyType;

    public void check() {
        FieldChecker.checkEmpty(testingApplyType, "检测申请单类型");
    }

    public boolean needPatientConfirm() {
        return "1".equals(testingApplyType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTestingApplyType() {
        return testingApplyType;
    }

    public void setTestingApplyType(String testingApplyType) {
        this.testingApplyType = testingApplyType;
    }
}
